<template>
	<view class="test-viwe">
		<!-- <poster></poster> -->
		<view class="test-tneme" :class="['bg-color']"></view>
	</view>
</template>

<script>
import poster from '@/components/poster/index.vue';
export default {
	components: {
		poster
	},
	data() {
		return {
			theme: 'theme3'
		};
	},
	onLoad() {
		const query = uni.createSelectorQuery().in(this);
		console.log(query.select('.test-viwe'));
		// query.select('.test-viwe').setAttribute('data-theme', 'theme3')
		// window.document.documentElement.setAttribute('data-theme', 'theme3');
	}
};
</script>

<style lang="scss">
.test-tneme {
	width: 200rpx;
	height: 200rpx;
}
</style>
